<template>
  <div class="common-layout">
    <el-container class="lay-container">
      <CommonAside />
      <el-container>
        <CommonHeader />
        <CommonTab />
        <el-main class="right-main">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
  import { defineComponent } from 'vue';
  import CommonHeader from '../components/CommonHeader.vue';
  import CommonAside from '../components/CommonAside.vue';
  import CommonTab from '../components/CommonTab.vue';
  export default defineComponent({
    components: {
      CommonHeader,
      CommonAside,
      CommonTab
    }
  })
</script>

<style scoped lang="less">
  .el-container {
    flex-wrap: wrap; //强制换行
    align-items: flex-start; //基准线设置
    height: 100%;
  }

  .common-layout {
    .lay-container {
      flex-wrap: nowrap;

      .right-main {
        height: calc(100%) !important;
      }
    }

    height: 100%;

    &>.el-container {
      height: 100%;

      &>.el-aside {
        height: 100%;
        background-color: grey;
      }
    }
  }
</style>